  function getDatetime(str) {
	var date = new Date();
	var	year = date.getFullYear();
	var	month = date.getMonth() + 1;
	var	day = date.getDate();
	var hour = date.getHours();
	var minute = date.getMinutes()
	if(month >= 1 && month <=9){
		month="0" + month;
	}
	if(day >= 0 && day <=9){
		day="0" + day;
	}
	if(hour >= 0 && hour <=9){
		hour="0" + hour;
	}
	if(minute >= 0 && minute <=9){
		minute="0" + minute;
	}
	
	if(str.indexOf('y') != -1){
		str = str.replace('y',year)
	}
	if(str.indexOf('m') != -1){
		str = str.replace('m',month)
	}
	if(str.indexOf('d') != -1){
		str = str.replace('d',day)
	}
	if(str.indexOf('h') != -1){
		str = str.replace('h',hour)
	}
	if(str.indexOf('i') != -1){
		str = str.replace('i',minute)
	}
	return str
}
module.exports = {
	getDatetime: getDatetime
}